import request from '@/utils/request'

export default {
  //列表
  getPageList(){
    return request({
      url: '/admin/system/course/findAll',
      method: 'get',
    })
  },

  //修改
  update(course){
    return request({
      url: '/admin/system/course/update',
      method: 'post',
      data: course
    })
  },
  //根据id查询
  getcourseById(id){
    return request({
      url: '/admin/system/student/findCourseById/'+id,
      method: 'get',
    })
  },

}
